function createrequest()
{
	var request = null
	try
	{
		request = new XMLHttpRequest();
	} 
	catch (iemaybe)
	 {
		try 
		{
			request = new ActiveXObject("Msxml12.XMLHTTP");
		}
	catch (somethingelse) 
	{
	                try
			{              
			request = new ActiveXObject("Microsoft.XMLHTTP");
			}
	 catch (failed)
	 {
		request = null;
	}
	}
	}	
	return request;
}	